import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;


public class FilewriteStudy {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		File file= new File("c:/jave.txt");
		byte[] data=new byte[100];
		
		for(int i = 0;i<100;i++){
			data[i]=(byte) (i+48);
		}
		
		try {
			FileOutputStream fos = new FileOutputStream(file);			
			fos.write(data);
			fos.flush();
			fos.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		

	}

}
